package me.zhengjie.modules.hanzi.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@TableName("hanzi_character")
@EqualsAndHashCode()
public class HanziCharacter {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField(value = "`character`")
    private String character;
    
    private String pinyin;
    private String meaning;
    
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> exampleWords;
    
    private String exampleSentence;
    private Integer strokeCount;
    private String radical;
    
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> strokeOrder;
    
    private String strokeOrderUrl;
    private Integer level;
    private String categoryId;
} 